<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 01.12.13
 * Time: 14:31
 */
class Tourism_ToursController extends Core_Controller_Action_Standard
{
  public function init()
  {

  }

  public function indexAction()
  {
    /** @var $toursTable Tourism_Model_DbTable_Tours*/
    $toursTable = Engine_Api::_()->getDbTable('tours', 'tourism');
    $this->view->paginator = $toursTable->getToursPaginator(array('type' => 'package'));

//    $this->_helper->content
      // ->setNoRender()
//      ->setEnabled()
//    ;
  }

  public function viewAction()
  {
    $tour_id = $this->_getParam('id');
    $tourTable = Engine_Api::_()->getDbTable('tours', 'tourism');
    $this->view->tour = $tour = $tourTable->getTour($tour_id);
    $this->_helper->content
//     ->setNoRender()
      ->setEnabled()
    ;
  }

  public function browseAction()
  {
    /** @var $toursTable Tourism_Model_DbTable_Tours*/
    $toursTable = Engine_Api::_()->getDbTable('tours', 'tourism');
    $this->view->paginator = $toursTable->getToursPaginator(array('type' => 'daily'));

  }
}